package com.uobgroup.ews.uam.core.service;

import java.util.List;

import com.uobgroup.ews.uam.core.domain.Reference;
import com.uobgroup.ews.uam.core.domain.RoleSubType;

public interface RoleSubTypeService {
	

	 long countAllRoleSubType();

	   public void deleteRoleSubType(RoleSubType roleSubType);

	   public RoleSubType findRoleSubType(Long id);

	   public List<RoleSubType> findAllRoleSubType();

	   public List<RoleSubType> findRoleSubTypeEntries(int firstResult, int maxResults);

	   public void saveRoleSubType(RoleSubType roleSubType);

	   public RoleSubType updateRoleSubType(RoleSubType roleSubType);

	   public List<RoleSubType> findByRoleTypeID(Long RoleTypeID);
	   public Boolean CheckIsUse(Long roleSubTypeId);
      /**
       * @author dongn
       */
	   public long countRoleSubTypeThatHasRoleTypeReference(Reference roleType);

}
